#ifndef _ASK_ENCODE_H_
#define _ASK_ENCODE_H_

#include <sys/types.h>

struct ask_encoder
{
	u_int8_t *bytes;
	int length;
	int samplerate,datarate;

	int samplecount;
};

void init_ask_encoder(struct ask_encoder *enc,u_int8_t *bytes,int length,int samplerate,int datarate);
void destroy_ask_decoder(struct ask_encoder *enc);

int request_ask_output(struct ask_encoder *enc,int16_t *samples,int numsamples);

int is_ask_done(struct ask_encoder *enc);
int total_ask_sample_count(struct ask_encoder *enc);

#endif


